extends Polygon2D

onready var MAIN = find_parent("MAIN")
# Declare member variables here. Examples:
# var a: int = 2
# var b: String = "text"


# Called when the node enters the scene tree for the first time.
func _ready() -> void:
	$TextureRect.connect("gui_input", self, "on_input")
	pass # Replace with function body.

func on_input(event: InputEvent):
	if event is InputEventMouseButton:
		MAIN.start()
		visible = false

# Called every frame. 'delta' is the elapsed time since the previous frame.
#func _process(delta: float) -> void:
#	pass
